import 'package:flutter/cupertino.dart';

class Test2 extends InheritedWidget {
  final int data;

  Test2({super.key, required this.data, required super.child});

  static Test2? of(BuildContext context) {
    return context.dependOnInheritedWidgetOfExactType<Test2>();
  }
  @override
  bool updateShouldNotify(covariant Test2 oldWidget) {
    // TODO: implement updateShouldNotify
    return oldWidget.data != data;
  }

}